﻿<Window x:Class="UsingBxf.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:my="clr-namespace:UsingBxf.ViewModels"
        Title="Using Bxf" Height="350" Width="525">
  <Window.Resources>
    <my:MainWindowViewModel x:Key="presenter"/>
  </Window.Resources>
  <Grid DataContext="{StaticResource presenter}">
    <Grid.Background>
      <RadialGradientBrush>
        <GradientStop Color="White" Offset="0" />
        <GradientStop Color="Bisque" Offset="1" />
      </RadialGradientBrush>
    </Grid.Background>
    <Grid.RowDefinitions>
      <RowDefinition Height="*" />
      <RowDefinition Height="Auto" />
      <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>
    <Border BorderBrush="Silver" BorderThickness="1" Name="border3">
      <ScrollViewer VerticalScrollBarVisibility="Auto">
        <ContentControl Content="{Binding Path=MainContent}" />
      </ScrollViewer>
    </Border>
    <Border BorderBrush="Silver" BorderThickness="1" Grid.Row="1" Name="border2">
      <ContentControl Content="{Binding Path=StatusContent}" VerticalContentAlignment="Center" HorizontalContentAlignment="Stretch" />
    </Border>
    <Border BorderBrush="Silver" BorderThickness="1" Grid.Row="2" Name="border1">
      <ContentControl Content="{Binding Path=ErrorContent}" VerticalContentAlignment="Center" HorizontalContentAlignment="Stretch" />
    </Border>
  </Grid>
</Window>
